Skip to content

Fix: restore searchable dropdown for DAG params enum fields#63895

Open
nagasrisai wants to merge 27 commits intoapache:mainfrom
nagasrisai:fix/searchable-dag-params-dropdown
Open

Fix: restore searchable dropdown for DAG params enum fields#63895
nagasrisai wants to merge 27 commits intoapache:mainfrom
nagasrisai:fix/searchable-dag-params-dropdown

Conversation

@nagasrisai
Copy link

@nagasrisai nagasrisai commented Mar 18, 2026

The DAG params dropdown was searchable in Airflow 2. You could type to narrow the list down to the option you wanted. That stopped working in Airflow 3.

Switched FieldDropdown to use chakra-react-select which already provides built-in search, consistent with how FieldMultiSelect works in the same directory. Removed the custom Input workaround and the unused translation key that came with it.

Closes #63879

@nagasrisai
Copy link
Author

nagasrisai commented Mar 18, 2026

Let me know if anything needs adjusting.

Copy link
Contributor

@bbovenzi bbovenzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use chakra-react-select elsewhere in the UI if we want to allow searching

@nagasrisai
Copy link
Author

nagasrisai commented Mar 18, 2026

Done, switched to chakra-react-select. Also removed the custom search input and the translation key that are no longer needed.
@bbovenzi could you please review ?

@bbovenzi
Copy link
Contributor

Can you provide a video or gif of the functionality?

@nagasrisai
Copy link
Author

nagasrisai commented Mar 19, 2026

Here are some screenshots from running the fix locally on a DAG with 12 enum params.

Clicking the field opens the full list:

Full dropdown list

Typing filters it down in real time — here searching "east" narrows it to the matching regions:

Search filtering

All 12 params render as searchable dropdowns. String, integer, and other param types are unaffected since the change only applies when param.schema?.enum is present.

@nagasrisai
Copy link
Author

Here's a gif showing the full interaction — dialog opening, full list rendering, then searching live as you type:

searchable enum dropdown demo

The first frame shows the dropdown closed with the current value. Clicking opens the full option list. Typing narrows it down in real time.

Copy link
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working as expected, looking good to me.

We just need to remove the screenshots.

@pierrejeambrun pierrejeambrun added this to the Airflow 3.2.0 milestone Mar 19, 2026
@nagasrisai
Copy link
Author

nagasrisai commented Mar 20, 2026

Hey @pierrejeambrun, just pushed the fixes for both comments ,removed the Option type and the generic from ReactSelect. Let me know if anything else looks off!

@potiuk
Copy link
Member

potiuk commented Mar 20, 2026

@nagasrisai This PR has a few issues that need to be addressed before it can be reviewed — please see our Pull Request quality criteria.

Issues found:

  • ⚠️ Unresolved review comments: This PR has 2 unresolved review threads from maintainers: @pierrejeambrun (MEMBER): 2 unresolved threads. Please review and resolve all inline review comments before requesting another review. You can resolve a conversation by clicking 'Resolve conversation' on each thread after addressing the feedback. See pull request guidelines.

What to do next:

  • The comment informs you what you need to do.
  • Fix each issue, then mark the PR as "Ready for review" in the GitHub UI - but only after making sure that all the issues are fixed.
  • There is no rush — take your time and work at your own pace. We appreciate your contribution and are happy to wait for updates.
  • Maintainers will then proceed with a normal review.

There is no rush — take your time and work at your own pace. We appreciate your contribution and are happy to wait for updates. If you have questions, feel free to ask on the Airflow Slack.

@nagasrisai
Copy link
Author

nagasrisai commented Mar 20, 2026

Hey @potiuk, thanks for flagging this. Both threads from @pierrejeambrun have been addressed in the latest commit , removed the explicit Option type and dropped the generic from <ReactSelect>. I've replied to each thread as well. I'll mark the conversations as resolved right away.

@pierrejeambrun
Copy link
Member

CI need fixing, some formatting issue.

Wrap nullish-coalescing expressions inside ternary branches with
parentheses, and remove the misplaced eslint-disable comment that
was not directly before a null literal. Both changes match what
Prettier 3.x requires for `?? null` inside `? :` ternaries.
@nagasrisai
Copy link
Author

nagasrisai commented Mar 20, 2026

@pierrejeambrun Fixed, Prettier wanted parentheses around the ?? null expressions inside the ternary branches, and the eslint-disable-next-line comment was in the wrong spot (before the condition rather than directly before a null literal). Both sorted in the latest commit.

@pierrejeambrun - please review

@nagasrisai nagasrisai requested a review from bbovenzi March 20, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dag params / drop-down is no longer searchable

4 participants